//导入定义验证规则的包
const joi = require('@hapi/joi')

//定义牧场名和密码的验证规则
//字符串和必填项
const username = joi.string().required();
const password = joi.string().required();

//向外暴露
//定义验证注册和登录的规则对象
exports.reg_login_schema = {
    body: {
        farm_name: username,
        password
    }
}
